<?
include('./header.inc');
include('./database.inc');
if ($_SESSION['superuser'] != "true"){
	notify("error", "You do not have permission to create new users");
	header( 'Location: ./users.php' ) ;
	die();
}

include('./pagehead.inc');
?>
<h2>Add New User</h2>
<form name="createuser" action="./savenewuser.php" method="post">
<table>
	<tr><td class="label">Username:</td><td><input type="text" name="username" /></td></tr>
	<tr><td class="label">Password:</td><td><input type="password" name="password" /></td></tr>
	<tr><td class="label">Confirm Password:</td><td><input type="password" name="passwordconfirm" /></td></tr>
	<tr><td class="label">User Type:</td><td><select name="superuser"><option value="false">Normal</option><option value="true">Super User</option></select></td></tr>
	<tr><td></td><td><input type="submit" name="submit" value="Create" class="button"/></td>
</table>
<input type="hidden" name="submitted" value="submitted" />
</form>
<?
include('./pagefoot.inc');
?>